package jpb;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.embedded.ConfigurableEmbeddedServletContainer;
import org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizer;

/**
 * Created by ZengYan on 2017/3/12.
 */


@SpringBootApplication
@MapperScan("jpb.module.dao.*.mapper")
/*public class Application  extends SpringBootServletInitializer {
        public static void main(String[] args) {
                SpringApplication.run(Application.class, args);
        }
        @Override
        protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
                return application.sources(Application.class);
        }

}*/
public class Application  implements EmbeddedServletContainerCustomizer {
        public static void main(String[] args) {
                SpringApplication.run(Application.class, args);
        }
        @Override
        public void customize(ConfigurableEmbeddedServletContainer configurableEmbeddedServletContainer) {
                configurableEmbeddedServletContainer.setPort(8090);
        }
}
